var _serviceURL = '/69mark';// 必须设置

function login() {
	var userName = $("#userName").val();
	var password = $("#password").val();
	if (userName == "" || password == "") {
		alert("账号或密码不能为空！");
		return;
	}
	$.ajax({
   		type : "POST",
   		url : _serviceURL+"/toUserLogin.do",
   		cache : false,
   		data : "userName="+userName+"&password="+password,
   		dataType : 'json',
   		success : function(data) {
   			if (data == '1') {
   				window.location.href = _serviceURL+"/web/toSecList.do?userRole=2";
   			}else {
   				alert("账号或密码错误，请重新输入");
   			}
   		}
	})
}